//
//  EssentialDetailView.m
//  Menu
//
//  Created by dllo on 15/7/8.
//  Copyright (c) 2015年 lijiangang. All rights reserved.
//

#import "EssentialDetailView.h"

@implementation EssentialDetailView

- (void)dealloc
{
    [_essentialImgView release];
    [_essentialLabel release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        [self createSubViews];
    }
    return self;
}

-(void)createSubViews
{
    self.essentialImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, MyWidth, 300*HEIGHT)];
    self.essentialImgView.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.essentialImgView];
    [_essentialImgView release];
    
    self.essentialLabel = [[UILabel alloc] initWithFrame:CGRectMake(20*WIDTH, self.essentialImgView.frame.origin.y + self.essentialImgView.frame.size.height + 20*HEIGHT, 335*WIDTH, 200*HEIGHT)];
    self.essentialLabel.backgroundColor = [UIColor whiteColor];
    self.essentialLabel.font = [UIFont systemFontOfSize:17];
    self.essentialLabel.numberOfLines = 0;
    [self addSubview:self.essentialLabel];
    [_essentialLabel release];
}





























/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
